import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Cart } from './entities/cart.entity';
import { Order } from './entities/order.entity';
import { Product } from './entities/product.entity';
import { Setting } from './entities/setting.entity';
import {
  User,
  UserAddress,
  UserCoupon,
  UserPoints,
} from './entities/user.entity';
import { Banner } from './entities/banner.entity';
import { Clerk } from './entities/clerk.entity';
import { Delivery } from './entities/delivery.entity';
import { Email } from './entities/email.entity';
import { Postman } from './entities/postman.entity';
import { Quick } from './entities/quick.entity';
import { Sms } from './entities/sms.entity';
import { Supplier } from './entities/supplier.entity';
import { SysPermission } from './entities/syspermission.entity';
import { SysResource } from './entities/sysresource.entity';
import { SysRole } from './entities/sysrole.entity';
import { SysUser } from './entities/sysuser.entity';
import { Warehouse } from './entities/warehouse.entity';
import { Address } from './entities/address.entity';
import { Browse } from './entities/browse.entity';
import { Category } from './entities/category.entity';
import { Comment } from './entities/comment.entity';
import { Faq } from './entities/faq.entity';
import { Favorite } from './entities/favorite.entity';
import { Feedback } from './entities/feedback.entity';
import { Media } from './entities/media.entity';
import { Outlet } from './entities/outlet.entity';
import { Rate } from './entities/rate.entity';
import { Work } from './entities/work.entity';
import { Coupon } from './entities/coupon.entity';
import {
  PointsProduct,
  PointsRecord,
  PointsRule,
} from './entities/points.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      Address,
      Banner,
      Browse,
      Cart,
      Category,
      Clerk,
      Comment,
      Coupon,
      Email,
      Delivery,
      Faq,
      Favorite,
      Feedback,
      Media,
      Order,
      Outlet,
      PointsProduct,
      PointsRecord,
      PointsRule,
      Postman,
      Product,
      Quick,
      Rate,
      Setting,
      Sms,
      Supplier,
      SysPermission,
      SysResource,
      SysRole,
      SysUser,
      User,
      UserAddress,
      UserCoupon,
      UserPoints,
      Warehouse,
      Work,
    ]),
  ],
})
export class CoreModule {}
